﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//该源码下载自www.51aspx.com(５1ａｓｐx．ｃｏｍ)

public partial class Pay : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
        this.bind();
    }
    public void bind()
    {
        DataSet ds = DB.reDs("select distinct Payment ,sum(Owe) as o,sum(Money)as m ,sum(Money+Owe) as p from tb_Payment group by Payment");
        this.gvStatistic.DataSource = ds;
        this.gvStatistic.DataBind();
    }
  }
